import { createStore, applyMiddleware, compose} from 'redux';
import rootReducers from './reducers/index';
import thunk from 'redux-thunk'

const initalState = {};

const middleware = [thunk]

export const store = createStore(
    rootReducers,
    initalState,
    compose(
        applyMiddleware(...middleware)
    ),
    window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
